home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 April / macformat-049.iso / mac / Shareware Plus / Developers / dropg++ / usr / include / scripts / vdump < prev    next >
Encoding:
Text File  |  1997-02-20  |  285 b   |  13 lines  |  [TEXT/R*ch]

  1. #    @(#)vdump    8.1 (Berkeley) 6/10/93
  2. #
  3. # dump the vnode list
  4.  
  5. define dumpvnodes
  6.  
  7.     set $vp = (struct vnode *)$arg0
  8.     while ($vp)
  9.         printf "vnode=0x%x freef=0x%x mountf=0x%x usecount=%d\n", $vp, $vp->v_freef, $vp->v_mountf, $vp->v_usecount
  10.         set $vp = (struct vnode *)$vp->v_freef
  11.     end
  12. end
  13.